﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SW.DDD.Infrastructure
{
    public class EntityNotFoundException : Exception
    {
        public Type EntityType { get; }

        public EntityNotFoundException(Type entityType, object entityKey) : base($"{entityType.Name}(Id={entityKey})")
        {
            EntityType = entityType;
        }
    }
}
